package com.whut.monitor.netty;

import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TcpClientFullNew40 {

    public static void main(String[] args) throws IOException {
        String[] str = {"127.0.0.1","3690"};
        client(str);
    }

    public static void client(String[] str) throws IOException{
        Socket s = null;
        InputStream ips = null;
        OutputStream ops = null;
        BufferedReader brKey  = null;
        DataOutputStream dos = null;
        BufferedReader brNet  = null;
        try{
            if(str.length < 2){
                System.out.println("Usage:java TcpClient ServerIP ServerPort");
                return;
            }

            s =new Socket(InetAddress.getByName(str[0]),Integer.parseInt(str[1]));
            ips =s.getInputStream();
            ops =s.getOutputStream();

            dos = new DataOutputStream(ops);
            brNet = new BufferedReader(new InputStreamReader(ips));

            int max=3000; int min=0;
            java.util.Random random=new java.util.Random();
//            int count = 0;
            while(true){
//	            count++;
//	            switch (count){
//
//				}
//	            if (count == 6){
//	            	count = 0;
//				}
	            SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                Date date=new Date();
                String strDate=sdf.format(date);

                System.out.println("----------------");
                String req=
						"@@,"+strDate+"\n" +
								"SDV,001\n" +
								"SDT00,00,28ff28f8041603d9,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,01,28ff280c01160410,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,02,28ffa203011604fc,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,03,28ff4a2305160375,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,04,28ff7eeda0160301,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,05,28ffcdfa001604cb,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,06,28ff6ba7a0160589,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT00,07,28ffd7cc0016044b,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,00,28ffb81cb2150311,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,01,28ffa2dd00160443,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,02,28ff921db2150167,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,03,28ff6a0c0116047a,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,04,28ff86eb041603f8,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,05,28ff71c100160479,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,06,28ffd3dd041603fe,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT01,07,28ffaf1fb2150108,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,00,28ff30f70016041c,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,01,28ff78bea01603cd,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,02,28ffb6e500160474,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,03,28ff4ec300160495,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,04,28ff95f7001604fd,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,05,28ffaddc001604a3,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,06,28ff1d93a01603e3,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT02,07,28ffa3f7001604e5,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,00,28ffd827b215045f,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,01,28ff783db215044f,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,02,28ff247eb2150310,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,03,28ff3425051603b3,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,04,28ffdcc20016042e,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,05,28ff52c600160449,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,06,28ffe6ce00160405,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT03,07,28ffed30b2150334,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,00,28ff0091a01604f7,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,01,28ff3ccba0160491,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,02,28ff56d7001604e1,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,03,28ff76e500160456,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,04,28ffa5c30016043f,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,05,28ff55a7a01605af,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,06,28ffcd0d01160497,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT04,07,28ff2d22b2150195,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,00,28ff80efa01605df,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,01,28ff04ada01605ec,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,02,28ff44d3a01605b8,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,03,28ff1d9da0160475,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,04,28fffdd4a0160582,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,05,28fffdada01605b9,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,06,28ff87caa0160421,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT05,07,28ffd7c6a0160325,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,00,28ff387da0160416,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,01,28ffcacfa01605fb,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,02,28ff16a8a0160592,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,03,28ff538da0160406,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,04,28ff538da0160406,"+Double.toString((random.nextInt(max)%(max-min+1) + min)*1.0/100)+"\n" +
								"SDT06,05,28ff5,\n" +
								"SDT06,06,,\n" +
								"SDT06,07,,\n" +
								"SDT07,00,,\n" +
								"SDT07,01,,\n" +
								"SDT07,02,,\n" +
								"SDT07,03,,\n" +
								"SDT07,04,,\n" +
								"SDT07,05,,\n" +
								"SDT07,06,,\n" +
								"SDT07,07,,\n" +
								"SST00,00,1536.358\n" +
								"SST00,01,1538.398\n" +
								"SST00,02,1540.388\n" +
								"SST00,03,1542.447\n" +
								"SST00,04,1544.479\n" +
								"SST00,05,1546.472\n" +
								"SST00,06,1548.138\n" +
								"SST00,07,1550.502\n" +
								"SST00,08,1552.390\n" +
								"SST00,09,1554.370\n" +
								"SST00,10,1556.290\n" +
								"SST00,11,1558.486\n" +
								"SST00,12,1560.524\n" +
								"SST00,13,1562.229\n" +
								"SST00,14,1564.314\n" +
								"SST00,15,0000.000\n" +
								"SST00,16,0000.000\n" +
								"SST00,17,0000.000\n" +
								"SST00,18,0000.000\n" +
								"SST00,19,0000.000\n" +
								"SST01,00,1550.319\n" +
								"SST01,01,1552.420\n" +
								"SST01,02,1554.543\n" +
								"SST01,03,1556.418\n" +
								"SST01,04,1557.013\n" +
								"SST01,05,1559.207\n" +
								"SST01,06,1560.557\n" +
								"SST01,07,1562.407\n" +
								"SST01,08,1564.210\n" +
								"SST01,09,0000.000\n" +
								"SST01,10,0000.000\n" +
								"SST01,11,0000.000\n" +
								"SST01,12,0000.000\n" +
								"SST01,13,0000.000\n" +
								"SST01,14,0000.000\n" +
								"SST01,15,0000.000\n" +
								"SST01,16,0000.000\n" +
								"SST01,17,0000.000\n" +
								"SST01,18,0000.000\n" +
								"SST01,19,0000.000\n" +
								"SST02,00,1548.574\n" +
								"SST02,01,1550.382\n" +
								"SST02,02,1551.472\n" +
								"SST02,03,1552.213\n" +
								"SST02,04,1554.670\n" +
								"SST02,05,1555.735\n" +
								"SST02,06,1556.416\n" +
								"SST02,07,1557.808\n" +
								"SST02,08,1558.508\n" +
								"SST02,09,1560.387\n" +
								"SST02,10,1562.778\n" +
								"SST02,11,1564.515\n" +
								"SST02,12,0000.000\n" +
								"SST02,13,0000.000\n" +
								"SST02,14,0000.000\n" +
								"SST02,15,0000.000\n" +
								"SST02,16,0000.000\n" +
								"SST02,17,0000.000\n" +
								"SST02,18,0000.000\n" +
								"SST02,19,0000.000\n" +
								"SST03,00,1536.569\n" +
								"SST03,01,1538.549\n" +
								"SST03,02,1540.780\n" +
								"SST03,03,1543.198\n" +
								"SST03,04,1545.305\n" +
								"SST03,05,1547.259\n" +
								"SST03,06,1549.296\n" +
								"SST03,07,1551.117\n" +
								"SST03,08,1552.270\n" +
								"SST03,09,1554.517\n" +
								"SST03,10,1556.530\n" +
								"SST03,11,1558.681\n" +
								"SST03,12,1560.597\n" +
								"SST03,13,1562.600\n" +
								"SST03,14,1564.226\n" +
								"SST03,15,0000.000\n" +
								"SST03,16,0000.000\n" +
								"SST03,17,0000.000\n" +
								"SST03,18,0000.000\n" +
								"SST03,19,0000.000\n" +
								"SST04,00,1536.723\n" +
								"SST04,01,1538.494\n" +
								"SST04,02,1540.660\n" +
								"SST04,03,1542.706\n" +
								"SST04,04,1544.701\n" +
								"SST04,05,1546.913\n" +
								"SST04,06,1548.926\n" +
								"SST04,07,1550.701\n" +
								"SST04,08,1552.300\n" +
								"SST04,09,1554.564\n" +
								"SST04,10,1556.641\n" +
								"SST04,11,1558.475\n" +
								"SST04,12,1560.313\n" +
								"SST04,13,1562.612\n" +
								"SST04,14,1564.396\n" +
								"SST04,15,0000.000\n" +
								"SST04,16,0000.000\n" +
								"SST04,17,0000.000\n" +
								"SST04,18,0000.000\n" +
								"SST04,19,0000.000\n" +
								"SST05,00,1536.696\n" +
								"SST05,01,1538.652\n" +
								"SST05,02,1540.542\n" +
								"SST05,03,1542.464\n" +
								"SST05,04,1544.333\n" +
								"SST05,05,1546.417\n" +
								"SST05,06,1548.480\n" +
								"SST05,07,1550.436\n" +
								"SST05,08,1552.410\n" +
								"SST05,09,1554.643\n" +
								"SST05,10,1556.563\n" +
								"SST05,11,1557.771\n" +
								"SST05,12,1558.433\n" +
								"SST05,13,1560.489\n" +
								"SST05,14,1562.591\n" +
								"SST05,15,1564.306\n" +
								"SST05,16,0000.000\n" +
								"SST05,17,0000.000\n" +
								"SST05,18,0000.000\n" +
								"SST05,19,0000.000\n" +
								"SST06,00,1536.363\n" +
								"SST06,01,1538.366\n" +
								"SST06,02,1540.522\n" +
								"SST06,03,1542.402\n" +
								"SST06,04,1544.407\n" +
								"SST06,05,1546.484\n" +
								"SST06,06,1548.188\n" +
								"SST06,07,0000.000\n" +
								"SST06,08,0000.000\n" +
								"SST06,09,0000.000\n" +
								"SST06,10,0000.000\n" +
								"SST06,11,0000.000\n" +
								"SST06,12,0000.000\n" +
								"SST06,13,0000.000\n" +
								"SST06,14,0000.000\n" +
								"SST06,15,0000.000\n" +
								"SST06,16,0000.000\n" +
								"SST06,17,0000.000\n" +
								"SST06,18,0000.000\n" +
								"SST06,19,0000.000\n" +
								"SFT00,00,1536.232\n" +
								"SFT00,01,1538.158\n" +
								"SFT00,02,1540.120\n" +
								"SFT00,03,1542.167\n" +
								"SFT00,04,1544.076\n" +
								"SFT00,05,1546.078\n" +
								"SFT00,06,1548.040\n" +
								"SFT00,07,1550.093\n" +
								"SFT00,08,1552.202\n" +
								"SFT00,09,1554.180\n" +
								"SFT00,10,1556.110\n" +
								"SFT00,11,1557.952\n" +
								"SFT00,12,1559.980\n" +
								"SFT00,13,1562.110\n" +
								"SFT00,14,1564.030\n" +
								"SFT00,15,0000.000\n" +
								"SFT00,16,0000.000\n" +
								"SFT00,17,0000.000\n" +
								"SFT00,18,0000.000\n" +
								"SFT00,19,0000.000\n" +
								"SFT01,00,1550.085\n" +
								"SFT01,01,1552.097\n" +
								"SFT01,02,1554.173\n" +
								"SFT01,03,1556.158\n" +
								"SFT01,04,1558.190\n" +
								"SFT01,05,1560.088\n" +
								"SFT01,06,1562.095\n" +
								"SFT01,07,1564.037\n" +
								"SFT01,08,1565.958\n" +
								//08为0,改不好
								"SFT01,09,1562.339\n" +
								"SFT01,10,1564.253\n" +
								"SFT01,11,0000.000\n" +
								"SFT01,12,0000.000\n" +
								"SFT01,13,0000.000\n" +
								"SFT01,14,0000.000\n" +
								"SFT01,15,0000.000\n" +
								"SFT01,16,0000.000\n" +
								"SFT01,17,0000.000\n" +
								"SFT01,18,0000.000\n" +
								"SFT01,19,0000.000\n" +
								"SFT02,00,1552.030\n" +
								"SFT02,01,1554.024\n" +
								"SFT02,02,1555.375\n" +//
								"SFT02,03,1558.015\n" +
								"SFT02,04,1559.980\n" +
								"SFT02,05,1562.050\n" +
								"SFT02,06,1563.984\n" +
								"SFT02,07,1562.254\n" +
								"SFT02,08,1564.131\n" +
								"SFT02,09,0000.000\n" +
								"SFT02,10,0000.000\n" +
								"SFT02,11,0000.000\n" +
								"SFT02,12,0000.000\n" +
								"SFT02,13,0000.000\n" +
								"SFT02,14,0000.000\n" +
								"SFT02,15,0000.000\n" +
								"SFT02,16,0000.000\n" +
								"SFT02,17,0000.000\n" +
								"SFT02,18,0000.000\n" +
								"SFT02,19,0000.000\n" +

								"SFT03,00,1536.238\n" +
								"SFT03,01,1538.218\n" +
								"SFT03,02,1540.172\n" +
								"SFT03,03,1542.220\n" +
								"SFT03,04,1544.148\n" +
								"SFT03,05,1546.142\n" +
								"SFT03,06,1548.081\n" +
								"SFT03,07,1550.079\n" +
								"SFT03,08,1552.040\n" +
								"SFT03,09,1554.014\n" +
								"SFT03,10,1556.096\n" +
								"SFT03,11,1558.092\n" +
								"SFT03,12,1560.053\n" +
								"SFT03,13,1561.990\n" +
								"SFT03,14,1563.946\n" +
								"SFT03,15,0000.000\n" +
								"SFT03,16,0000.000\n" +
								"SFT03,17,0000.000\n" +
								"SFT03,18,0000.000\n" +
								"SFT03,19,0000.000\n" +

								"SFT04,00,1536.201\n" +
								"SFT04,01,1538.154\n" +
								"SFT04,02,1540.111\n" +
								"SFT04,03,1542.179\n" +
								"SFT04,04,1544.128\n" +
								"SFT04,05,1546.103\n" +
								"SFT04,06,1548.027\n" +//
								"SFT04,07,1550.040\n" +
								"SFT04,08,1552.057\n" +
								"SFT04,09,1553.985\n" +
								"SFT04,10,1556.054\n" +
								"SFT04,11,1558.051\n" +
								"SFT04,12,1560.102\n" +
								"SFT04,13,1562.189\n" +
								"SFT04,14,1564.208\n" +
								"SFT04,15,0000.000\n" +
								"SFT04,16,0000.000\n" +
								"SFT04,17,0000.000\n" +
								"SFT04,18,0000.000\n" +
								"SFT04,19,0000.000\n" +

								"SFT05,00,1536.207\n" +
								"SFT05,01,1538.163\n" +
								"SFT05,02,1540.114\n" +
								"SFT05,03,1542.146\n" +
								"SFT05,04,1544.107\n" +
								"SFT05,05,1546.063\n" +
								"SFT05,06,1548.015\n" +
								"SFT05,07,1550.012\n" +
								"SFT05,08,1552.087\n" +
								"SFT05,09,1554.014\n" +
								"SFT05,10,1555.405\n" +
								"SFT05,11,1558.108\n" +
								"SFT05,12,1560.050\n" +
								"SFT05,13,1562.100\n" +
								"SFT05,14,1564.066\n" +
								"SFT05,15,0000.000\n" +
								"SFT05,16,0000.000\n" +
								"SFT05,17,0000.000\n" +
								"SFT05,18,0000.000\n" +
								"SFT05,19,0000.000\n" +

								"SFT06,00,1536.080\n" +
								"SFT06,01,1538.145\n" +
								"SFT06,02,1540.145\n" +
								"SFT06,03,1542.200\n" +
								"SFT06,04,1544.108\n" +
								"SFT06,05,1546.131\n" +
								"SFT06,06,1548.182\n" +
								"SFT06,07,0000.000\n" +
								"SFT06,08,0000.000\n" +
								"SFT06,09,0000.000\n" +
								"SFT06,10,0000.000\n" +
								"SFT06,11,0000.000\n" +
								"SFT06,12,0000.000\n" +
								"SFT06,13,0000.000\n" +
								"SFT06,14,0000.000\n" +
								"SFT06,15,0000.000\n" +
								"SFT06,16,0000.000\n" +
								"SFT06,17,0000.000\n" +
								"SFT06,18,0000.000\n" +
								"SFT06,19,0000.000\n" +
								"SFT07,00,1536.065\n" +
								"SFT07,01,1538.180\n" +
								"SFT07,02,1540.187\n" +
								"SFT07,03,1542.214\n" +
								"SFT07,04,1544.234\n" +
								"SFT07,05,1546.195\n" +
								"SFT07,06,1548.235\n" +
								"SFT07,07,1550.324\n" +
								"SFT07,08,1552.315\n" +
								"SFT07,09,0000.000\n" +
								"SFT07,10,0000.000\n" +
								"SFT07,11,0000.000\n" +
								"SFT07,12,0000.000\n" +
								"SFT07,13,0000.000\n" +
								"SFT07,14,0000.000\n" +
								"SFT07,15,0000.000\n" +
								"SFT07,16,0000.000\n" +
								"SFT07,17,0000.000\n" +
								"SFT07,18,0000.000\n" +
								"SFT07,19,0000.000\n" +
								"SFT08,00,1558.092\n" +
								"SFT08,01,1560.085\n" +
								"SFT08,02,1562.087\n" +
								"SFT08,03,1564.065\n" +
								"SFT08,04,0000.000\n" +
								"SFT08,05,0000.000\n" +
								"SFT08,06,0000.000\n" +
								"SFT08,07,0000.000\n" +
								"SFT08,08,0000.000\n" +
								"SFT08,09,0000.000\n" +
								"SFT08,10,0000.000\n" +
								"SFT08,11,0000.000\n" +
								"SFT08,12,0000.000\n" +
								"SFT08,13,0000.000\n" +
								"SFT08,14,0000.000\n" +
								"SFT08,15,0000.000\n" +
								"SFT08,16,0000.000\n" +
								"SFT08,17,0000.000\n" +
								"SFT08,18,0000.000\n" +
								"SFT08,19,0000.000\n" +
								"SFT09,00,1551.029\n" +
								"SFT09,01,1553.077\n" +
								"SFT09,02,1555.130\n" +
								"SFT09,03,1557.132\n" +
								"SFT09,04,0000.000\n" +
								"SFT09,05,0000.000\n" +
								"SFT09,06,0000.000\n" +
								"SFT09,07,0000.000\n" +
								"SFT09,08,0000.000\n" +
								"SFT09,09,0000.000\n" +
								"SFT09,10,0000.000\n" +
								"SFT09,11,0000.000\n" +
								"SFT09,12,0000.000\n" +
								"SFT09,13,0000.000\n" +
								"SFT09,14,0000.000\n" +
								"SFT09,15,0000.000\n" +
								"SFT09,16,0000.000\n" +
								"SFT09,17,0000.000\n" +
								"SFT09,18,0000.000\n" +
								"SFT09,19,0000.000\n" +
								"SFT10,00,1544.045\n" +
								"SFT10,01,1546.110\n" +
								"SFT10,02,1548.103\n" +
								"SFT10,03,1550.043\n" +
								"SFT10,04,0000.000\n" +
								"SFT10,05,0000.000\n" +
								"SFT10,06,0000.000\n" +
								"SFT10,07,0000.000\n" +
								"SFT10,08,0000.000\n" +
								"SFT10,09,0000.000\n" +
								"SFT10,10,0000.000\n" +
								"SFT10,11,0000.000\n" +
								"SFT10,12,0000.000\n" +
								"SFT10,13,0000.000\n" +
								"SFT10,14,0000.000\n" +
								"SFT10,15,0000.000\n" +
								"SFT10,16,0000.000\n" +
								"SFT10,17,0000.000\n" +
								"SFT10,18,0000.000\n" +
								"SFT10,19,0000.000\n" +
								"SFT11,00,1537.049\n" +
								"SFT11,01,1540.438\n" +
								"SFT11,02,1542.969\n" +
								"SFT11,03,1546.028\n" +
								"SFT11,04,1549.002\n" +
								"SFT11,05,1552.091\n" +
								"SFT11,06,1554.953\n" +
								"SFT11,07,1557.981\n" +
								"SFT11,08,1561.017\n" +
								"SFT11,09,0000.000\n" +
								"SFT11,10,0000.000\n" +
								"SFT11,11,0000.000\n" +
								"SFT11,12,0000.000\n" +
								"SFT11,13,0000.000\n" +
								"SFT11,14,0000.000\n" +
								"SFT11,15,0000.000\n" +
								"SFT11,16,0000.000\n" +
								"SFT11,17,0000.000\n" +
								"SFT11,18,0000.000\n" +
								"SFT11,19,0000.000\n" +
								"SFT12,00,1538.079\n" +
								"SFT12,01,1539.141\n" +
								"SFT12,02,1541.031\n" +
								"SFT12,03,1543.962\n" +
								"SFT12,04,1547.004\n" +
								"SFT12,05,1549.951\n" +
								"SFT12,06,1553.011\n" +
								"SFT12,07,1556.109\n" +
								"SFT12,08,1559.063\n" +
								"SFT12,09,1562.003\n" +
								"SFT12,10,1566.048\n" +
								"SFT12,11,0000.000\n" +
								"SFT12,12,0000.000\n" +
								"SFT12,13,0000.000\n" +
								"SFT12,14,0000.000\n" +
								"SFT12,15,0000.000\n" +
								"SFT12,16,0000.000\n" +
								"SFT12,17,0000.000\n" +
								"SFT12,18,0000.000\n" +
								"SFT12,19,0000.000\n" +
								"SFT13,00,1533.997\n" +
								"SFT13,01,1537.589\n" +
								"SFT13,02,1540.578\n" +
								"SFT13,03,1543.355\n" +
								"SFT13,04,1546.497\n" +
								"SFT13,05,1549.300\n" +
								"SFT13,06,1552.671\n" +
								"SFT13,07,0000.000\n" +
								"SFT13,08,0000.000\n" +
								"SFT13,09,0000.000\n" +
								"SFT13,10,0000.000\n" +
								"SFT13,11,0000.000\n" +
								"SFT13,12,0000.000\n" +
								"SFT13,13,0000.000\n" +
								"SFT13,14,0000.000\n" +
								"SFT13,15,0000.000\n" +
								"SFT13,16,0000.000\n" +
								"SFT13,17,0000.000\n" +
								"SFT13,18,0000.000\n" +
								"SFT13,19,0000.000\n" +
								"SFT14,00,1533.959\n" +
								"SFT14,01,1537.006\n" +
								"SFT14,02,1540.358\n" +
								"SFT14,03,1542.988\n" +
								"SFT14,04,1545.994\n" +
								"SFT14,05,1548.997\n" +
								"SFT14,06,1552.323\n" +
								"SFT14,07,1555.083\n" +
								"SFT14,08,1558.105\n" +
								"SFT14,09,1561.286\n" +
								"SFT14,10,0000.000\n" +
								"SFT14,11,0000.000\n" +
								"SFT14,12,0000.000\n" +
								"SFT14,13,0000.000\n" +
								"SFT14,14,0000.000\n" +
								"SFT14,15,0000.000\n" +
								"SFT14,16,0000.000\n" +
								"SFT14,17,0000.000\n" +
								"SFT14,18,0000.000\n" +
								"SFT14,19,0000.000\n" +
								"SFT15,00,1533.122\n" +
								"SFT15,01,1536.106\n" +
								"SFT15,02,1539.164\n" +
								"SFT15,03,1542.091\n" +
								"SFT15,04,0000.000\n" +
								"SFT15,05,0000.000\n" +
								"SFT15,06,0000.000\n" +
								"SFT15,07,0000.000\n" +
								"SFT15,08,0000.000\n" +
								"SFT15,09,0000.000\n" +
								"SFT15,10,0000.000\n" +
								"SFT15,11,0000.000\n" +
								"SFT15,12,0000.000\n" +
								"SFT15,13,0000.000\n" +
								"SFT15,14,0000.000\n" +
								"SFT15,15,0000.000\n" +
								"SFT15,16,0000.000\n" +
								"SFT15,17,0000.000\n" +
								"SFT15,18,0000.000\n" +
								"SFT15,19,0000.000\n" +
								"SFT16,00,1533.080\n" +
								"SFT16,01,1536.305\n" +
								"SFT16,02,1539.306\n" +
								"SFT16,03,1542.251\n" +
								"SFT16,04,1545.388\n" +
								"SFT16,05,1548.105\n" +
								"SFT16,06,1551.198\n" +
								"SFT16,07,1554.391\n" +
								"SFT16,08,1557.108\n" +
								"SFT16,09,1560.077\n" +
								"SFT16,10,0000.000\n" +
								"SFT16,11,0000.000\n" +
								"SFT16,12,0000.000\n" +
								"SFT16,13,0000.000\n" +
								"SFT16,14,0000.000\n" +
								"SFT16,15,0000.000\n" +
								"SFT16,16,0000.000\n" +
								"SFT16,17,0000.000\n" +
								"SFT16,18,0000.000\n" +
								"SFT16,19,0000.000\n" +
								"SFT17,00,1534.153\n" +
								"SFT17,01,1537.250\n" +
								"SFT17,02,1539.067\n" +
								"SFT17,03,1542.757\n" +
								"SFT17,04,1545.647\n" +
								"SFT17,05,1548.865\n" +
								"SFT17,06,1551.634\n" +
								"SFT17,07,1554.971\n" +
								"SFT17,08,1557.609\n" +
								"SFT17,09,1560.813\n" +
								"SFT17,10,0000.000\n" +
								"SFT17,11,0000.000\n" +
								"SFT17,12,0000.000\n" +
								"SFT17,13,0000.000\n" +
								"SFT17,14,0000.000\n" +
								"SFT17,15,0000.000\n" +
								"SFT17,16,0000.000\n" +
								"SFT17,17,0000.000\n" +
								"SFT17,18,0000.000\n" +
								"SFT17,19,0000.000\n" +
								"SFT18,00,1548.248\n" +
								"SFT18,01,1554.226\n" +
								"SFT18,02,1557.290\n" +
								"SFT18,03,1560.101\n" +
								"SFT18,04,0000.000\n" +
								"SFT18,05,0000.000\n" +
								"SFT18,06,0000.000\n" +
								"SFT18,07,0000.000\n" +
								"SFT18,08,0000.000\n" +
								"SFT18,09,0000.000\n" +
								"SFT18,10,0000.000\n" +
								"SFT18,11,0000.000\n" +
								"SFT18,12,0000.000\n" +
								"SFT18,13,0000.000\n" +
								"SFT18,14,0000.000\n" +
								"SFT18,15,0000.000\n" +
								"SFT18,16,0000.000\n" +
								"SFT18,17,0000.000\n" +
								"SFT18,18,0000.000\n" +
								"SFT18,19,0000.000\n" +
								"SFT19,00,0000.000\n" +
								"SFT19,01,0000.000\n" +
								"SFT19,02,0000.000\n" +
								"SFT19,03,0000.000\n" +
								"SFT19,04,0000.000\n" +
								"SFT19,05,0000.000\n" +
								"SFT19,06,0000.000\n" +
								"SFT19,07,0000.000\n" +
								"SFT19,08,0000.000\n" +
								"SFT19,09,0000.000\n" +
								"SFT19,10,0000.000\n" +
								"SFT19,11,0000.000\n" +
								"SFT19,12,0000.000\n" +
								"SFT19,13,0000.000\n" +
								"SFT19,14,0000.000\n" +
								"SFT19,15,0000.000\n" +
								"SFT19,16,0000.000\n" +
								"SFT19,17,0000.000\n" +
								"SFT19,18,0000.000\n" +
								"SFT19,19,0000.000\n" +
								"SFT20,00,1537.042\n" +
								"SFT20,01,1540.014\n" +
								"SFT20,02,1542.986\n" +
								"SFT20,03,1546.020\n" +
								"SFT20,04,1549.030\n" +
								"SFT20,05,1552.166\n" +
								"SFT20,06,1554.993\n" +
								"SFT20,07,1558.029\n" +
								"SFT20,08,1560.970\n" +
								"SFT20,09,1563.989\n" +
								"SFT20,10,0000.000\n" +
								"SFT20,11,0000.000\n" +
								"SFT20,12,0000.000\n" +
								"SFT20,13,0000.000\n" +
								"SFT20,14,0000.000\n" +
								"SFT20,15,0000.000\n" +
								"SFT20,16,0000.000\n" +
								"SFT20,17,0000.000\n" +
								"SFT20,18,0000.000\n" +
								"SFT20,19,0000.000\n" +
								"SFT21,00,1538.141\n" +
								"SFT21,01,1541.047\n" +
								"SFT21,02,1543.994\n" +
								"SFT21,03,1547.025\n" +
								"SFT21,04,0000.000\n" +
								"SFT21,05,0000.000\n" +
								"SFT21,06,0000.000\n" +
								"SFT21,07,0000.000\n" +
								"SFT21,08,0000.000\n" +
								"SFT21,09,0000.000\n" +
								"SFT21,10,0000.000\n" +
								"SFT21,11,0000.000\n" +
								"SFT21,12,0000.000\n" +
								"SFT21,13,0000.000\n" +
								"SFT21,14,0000.000\n" +
								"SFT21,15,0000.000\n" +
								"SFT21,16,0000.000\n" +
								"SFT21,17,0000.000\n" +
								"SFT21,18,0000.000\n" +
								"SFT21,19,0000.000\n" +
								"SFT22,00,1537.108\n" +
								"SFT22,01,1540.098\n" +
								"SFT22,02,1542.985\n" +
								"SFT22,03,1545.988\n" +
								"SFT22,04,1549.097\n" +
								"SFT22,05,1552.102\n" +
								"SFT22,06,1554.911\n" +
								"SFT22,07,1557.947\n" +
								"SFT22,08,1560.990\n" +
								"SFT22,09,1563.967\n" +
								"SFT22,10,0000.000\n" +
								"SFT22,11,0000.000\n" +
								"SFT22,12,0000.000\n" +
								"SFT22,13,0000.000\n" +
								"SFT22,14,0000.000\n" +
								"SFT22,15,0000.000\n" +
								"SFT22,16,0000.000\n" +
								"SFT22,17,0000.000\n" +
								"SFT22,18,0000.000\n" +
								"SFT22,19,0000.000\n" +
								"SFT23,00,1538.037\n" +
								"SFT23,01,1541.040\n" +
								"SFT23,02,1543.952\n" +
								"SFT23,03,1546.991\n" +
								"SFT23,04,1549.954\n" +
								"SFT23,05,1552.986\n" +
								"SFT23,06,1556.065\n" +
								"SFT23,07,1558.981\n" +
								"SFT23,08,1562.004\n" +
								"SFT23,09,1565.917\n" +
								"SFT23,10,0000.000\n" +
								"SFT23,11,0000.000\n" +
								"SFT23,12,0000.000\n" +
								"SFT23,13,0000.000\n" +
								"SFT23,14,0000.000\n" +
								"SFT23,15,0000.000\n" +
								"SFT23,16,0000.000\n" +
								"SFT23,17,0000.000\n" +
								"SFT23,18,0000.000\n" +
								"SFT23,19,0000.000\n" +
								"SFT24,00,1555.417\n" +
								"SFT24,01,1558.649\n" +
								"SFT24,02,1561.542\n" +
								"SFT24,03,0000.000\n" +
								"SFT24,04,0000.000\n" +
								"SFT24,05,0000.000\n" +
								"SFT24,06,0000.000\n" +
								"SFT24,07,0000.000\n" +
								"SFT24,08,0000.000\n" +
								"SFT24,09,0000.000\n" +
								"SFT24,10,0000.000\n" +
								"SFT24,11,0000.000\n" +
								"SFT24,12,0000.000\n" +
								"SFT24,13,0000.000\n" +
								"SFT24,14,0000.000\n" +
								"SFT24,15,0000.000\n" +
								"SFT24,16,0000.000\n" +
								"SFT24,17,0000.000\n" +
								"SFT24,18,0000.000\n" +
								"SFT24,19,0000.000\n" +
								"SCD,X,9.876543,Y,-1.234567,Z,5.555555\n" +
								"SET00,00,28f3deee050000a0,1\n" +
								"SET00,01,28ffe7cc001604cf,2\n" +
								"SET01,00,28ff2cf700160441,3\n" +
								"SET01,01,28ff7cff001604cB,4\n" +
								"SET01,01,28ff7cff001604c8,4\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								"SCN,ERR,00000000,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888\n" +
								//"SPW,V,220.13,I,3.512,P,204.234\n" +
								"SCN,CH,0,XPOS,1234.5,YPOS,678.90,ZPOS,91.357,MAPOS,79.6959\n" +
								//"SCN,XPWR,-3.33,YPWR,-4.44,ZPWR,5.55,MAPWR,6.66\n" +
								//"SCN,XFU,-8.14%,YFU,-7.13%,ZFU,2.37%,MAFU,0.10%\n" +
								//"SCN,FR,0.40,SP,-2500.00,PA,Pause\n" +
								"!!,"+strDate+",end\n";
                //req=String.format(req, strDate);
                dos.write(req.getBytes("UTF-8"));
                Thread.sleep(6000);
            }
        }catch(Exception e){
            e.printStackTrace();
        } finally{
            dos.close();
            brNet.close();
            brKey.close();
            s.close();
        }
    }
}

